package cn.com.nes.common.packet.impl;


import cn.com.nes.common.generator.SequenceNumberGenerator;
import cn.com.nes.common.packet.AbstractPacket;
import cn.com.nes.common.packet.PacketType;

public class Register extends AbstractPacket {

    private String appId;
    private String secret;

    public Register(Long sequenceNumber) {
        super(sequenceNumber);
    }

    public Register(SequenceNumberGenerator generator) {
        super(generator);
    }

    public Register() {
        super();
    }

    @Override
    public PacketType getType() {
        return PacketType.REQUEST;
    }

    public String getAppId() {
        return appId;
    }

    public Register setAppId(String appId) {
        this.appId = appId;
        return this;
    }

    public String getSecret() {
        return secret;
    }

    public Register setSecret(String secret) {
        this.secret = secret;
        return this;
    }
}
